package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2018/10/11 0011.
 */

public class VideoLearningResult implements Parcelable {

    /**
     * code : 200
     * msg : 取消标记成功！
     * data : 1
     */

    private int code;
    private String msg;
    private int data;

    protected VideoLearningResult(Parcel in) {
        code = in.readInt();
        msg = in.readString();
        data = in.readInt();
    }

    public static final Creator<VideoLearningResult> CREATOR = new Creator<VideoLearningResult>() {
        @Override
        public VideoLearningResult createFromParcel(Parcel in) {
            return new VideoLearningResult(in);
        }

        @Override
        public VideoLearningResult[] newArray(int size) {
            return new VideoLearningResult[size];
        }
    };

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(code);
        dest.writeString(msg);
        dest.writeInt(data);
    }
}
